// 聊天软件model

const mongoose = require('mongoose')

const chatSchema = mongoose.Schema({
  username: {
    type: String,
    require: true
  },
  password: {
    type: String,
    require: true
  },
  nickname: {
    type: String,
    default: ''
  },
  avatar: {
    type: String,
    default: ''
  },
  signature: {
    type: String,
    default: ''
  },
  friends: {
    type: Array,
    default: []
  },
  msg: {
    type: Array,
    default: []
  }
})

module.exports = chatSchema